package cn.yunhe.entity;

import java.io.Serializable;

/**
 * 订单详情表
 */
public class OrderDetail implements Serializable {
    private int eodid;//订单详情编号
    private int quantity;//商品数量
    private int userid;
    private Product product;

    public OrderDetail() {
    }

    public OrderDetail(int quantity, int userid, Product product) {
        this.quantity = quantity;
        this.userid = userid;
        this.product = product;
    }

    public OrderDetail(int userid, Product product) {
        this.userid = userid;
        this.product = product;
    }

    public OrderDetail(int eodid, int quantity, int userid, Product product) {
        this.eodid = eodid;
        this.quantity = quantity;
        this.userid = userid;
        this.product = product;
    }

    public int getEodid() {
        return eodid;
    }

    public void setEodid(int eodid) {
        this.eodid = eodid;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }
}